<?php

namespace app\modules\v1\controllers;

use yii\web\Controller;

use yii\rest\ActiveController;
use Yii\web\Response;
/**
 * Default controller for the `v1` module
 */
class BaseController extends ActiveController
{
    /**
     * Renders the index view for the module
     * @return string
     */

    public function behaviors()
    {
        $behaviors = parent::behaviors();
        $behaviors['contentNegotiator']['formats']['text/html'] = Response::FORMAT_JSON;
        return $behaviors;

    }


}
